package com.lanan.springboot.service;

import com.lanan.springboot.model.Tag;
import com.lanan.springboot.model.TopicTag;

import java.util.List;

/**
 * @desc ITopicTagService
 * @author lanan
 * @date 2022-04-30 21:58:19
 **/
public interface ITopicTagService {
    List<TopicTag> selectByTopicId(Integer topicId);

    List<TopicTag> selectByTagId(Integer tagId);

    void insertTopicTag(Integer topicId, List<Tag> tagList);

    // 删除话题所有关联的标签记录
    void deleteByTopicId(Integer id);
}
